When holidays are granted, add lines to the analytic account that is linked to the Leave Type
Add sequence on department